package cn.edu.scau.cmi.maikejian.Singleton;


public class Chairman {
          private static Chairman instance;
          private String name;
          private int count = 0 ;
          
          private Chairman(String name) 
          {
        	  this.name = name;
          }
          public void ChangeName(String name) {
        	  this.name = name;
          }
          
          public static Chairman getInstance(String name) {
        	  if(instance == null&&!name.equals(null))
        		  instance = new Chairman(name);
        	  return instance;
          }
          
          public String getName() 
          {
        	  return this.name;
          }
          public int getCount() {
        	  return this.count;
        	  
          }
          public void add() {
			this.count++;
		}
          
}
